<template>
  <ul class="list-wrap reset-list content-main">
    <template v-if="list && list.length">
      <nuxt-link
        v-for="(item, index) of list"
        tag="li"
        class="list-item pointer"
        :to="`/user/dabord/${item.uid}`"
        :key="index"
      >{{item.username}}</nuxt-link>
    </template>
    <li v-else class="content-null">- 暂无相关用户 -</li>
  </ul>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.list-wrap {
  padding: 20px 0 0;
}
</style>